package com.friday.dao;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface DeliveryDao {

    int addDelivery(JSONObject delivery);

    int addDeliveryDtl(JSONObject deliverydtl);

    int addDeliveryRecord(JSONObject deliveryrecord);

    JSONObject getDeliveryById(int id);

    JSONArray getAllDelivery();

    JSONArray getDeliverydtlById(int delivery_id);

    int delDeliveryById(int id);

    int delDeliverydtlByDId(int id);

    int delDeliveryRecordByid(int id);

    JSONArray getProdQntyInPlant(int product_id);

    int checkDeliverydtl(int id);

    int checkDO(int id);

    int changeDtlSta(int id,String status);

    int changeDeliBydtl(int id);

    JSONObject getDeliveryByOId(int order_id);

    int deliRecordReceive(int id);

    int deliRecordSend(int id);

    JSONArray getDeliRecordByOId(int order_id);

    JSONArray getDeliRecordByDeli(int delivery_id);

    JSONArray getDeliRecordBydtl(int deliverydtl_id);






}
